﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace AvvaMobileNHibernateHelperKit
{
    public partial class ColumnsPreview : Form
    {
        DataTable dtColumns;
        public ColumnsPreview(DataTable dt)
        {
            InitializeComponent();
            dtColumns = dt;
        }

        private void ColumnsPreview_Load(object sender, EventArgs e)
        {  
            foreach(DataRow dr in dtColumns.Rows)
            {
                ListViewItem item = new ListViewItem(dr["col_id"].ToString(), 0);            
                item.SubItems.Add(dr["col_name"].ToString());
                item.SubItems.Add(dr["col_typename"].ToString());
                item.SubItems.Add(dr["col_len"].ToString());
                listView1.Items.Add(item);

            }
        }



















    }
}